package day06_homework_1;

public class Vehicle {
	private double speed;
	private double size;

	public void move(){
		
	}
	public void speedUp(double speed_change) {
		this.setSpeed(speed+speed_change);
	}
	public void speedDown(double speed_change) {
		this.setSpeed(speed-speed_change);
	}
	@Override
	public String toString() {
		return "Vehicle [speed=" + speed + ", size=" + size + "]";
	}
	public double getSpeed() {
		return speed;
	}
	public void setSpeed(double speed) {
		this.speed = speed;
	}
	public double getSize() {
		return size;
	}
	public void setSize(double size) {
		this.size = size;
	}
	
}
